package by.yativem.commons.utils.string;

import org.apache.log4j.Logger;

public class StringUtil {
	private static final Logger log = Logger.getLogger(StringUtil.class);
	
	public static boolean isBlank(String str){
		return  str== null || "".equals(str) ;
	}
	@Deprecated
	public static  String beanToStirng(Object obj){
	/*	if (obj == null){
			return "null";
		}else{
			StringBuilder sb = new StringBuilder();
			Field[] fields =   obj.getClass().getFields();
			
			for(Field f : fields){
				try {
					f.get(obj);
				} catch (IllegalArgumentException e) {
					log.error("", e);
				} catch (IllegalAccessException e) {
					log.error("", e);
				}
			}
				
				return sb.toString();
				}
				*/
		
		return "";
		
	}
}
